<!DOCTYPE html>
<html lang="ar">
<head>
    <title>حوالات الدفع</title>
	
	
	<?php $this->load->helper('url');?>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta charset="utf-8">
	
	<!---------------------for autocomplete--------------->
	<script type="text/javascript" src="<?php echo base_url('assets/js/jquery-1.11.0.min.js');?>" ></script>
	<script type="text/javascript" src="<?php echo base_url('assets/js/jquery-ui-1.10.4/js/jquery-ui-1.10.4.min.js');?>" ></script>
	<link href="<?php echo base_url("assets/css/jquery-ui.css")?>" rel="stylesheet" type="text/css" />
	<!------------------------------------------------------>
	

<script type="text/javascript" src="<?php echo base_url('assets/js/jquery.tablesorter.min.js');?>" ></script>
	<link href="<?php echo base_url("assets/css/ch_menu.css")?>" rel="stylesheet" type="text/css" />
		<link href="<?php echo base_url("assets/css/table.css")?>" rel="stylesheet" type="text/css" />
			 <link href="<?php echo base_url("assets/css/botton.css")?>" rel="stylesheet" type="text/css" />
			 
	<meta charset="utf-8">
	
</head>


<?php include_once('header.php');
	
	
		 $this->load->library('session');
        $chcl=$this->session->userdata('data_charticle'); //access it
     
 ?>
 


<div id="destination" >
  <h1>التحويلات</h1>
  <div id="body">
  
  <div class="CSS_Table_Example" >
  <table id="myTable" class="tablesorter">
  <thead>
<tr>
   <th>    التاريخ </th>
   <th>    المبلغ  </th>
   <th>  المادة الوجهة </th>
   <th>  المادة المصدر </th>
   <th>  رقم التحويل</th> 
</tr>
</thead>
<tbody>
<?php

foreach($result as $data) 
{

	echo '<tr >
	<td> '.$data->date.'</a></td>
	<td>'.$data->montant.'</td>
	 <td>'.$data->article_source.'</td>	 
	   <td>'.$data->article_dest.'</td>
		    <td> <a href='.base_url("/etat_financier_ctr/detaille_transfert/$data->id_tranfert").'>'.$data->numero.'</a></td>
		  </tr>'  ;
	
}

  
?>
</tbody>
</table>
</div>

 <div style="position: relative; left: 10%;">  
<a href="<?php echo base_url("/budget_ctr/load/budget_vew")?>" class="botton">عودة</a>

<?php
  $goupe=$this->session->userdata('user_group'); //access it
if($goupe=="admin"){
echo ('<a href="'. base_url('/etat_financier_ctr/ajout_transfert').'" class="botton">اضافة</a>');
}else{
	echo ('<a href="#" class="btn_disabled">ajout</a>');
}
?>
</div>
  </div>
 
</div>
  <script>
 $(document).ready(function() 
    { 
        $("#myTable").tablesorter(); 
    } 
); 
 </script>   
 <script>
$(function() {
	var liste_fourniss = <?php echo json_encode($liste_des_fournisseurs); ?>;
	$( "#nom" ).autocomplete({source: liste_fourniss});
	} 
); 
</script> 
</html>